Chapter 22. Standard Gradle plugins 标准 Gradle 插件
这些插件添加各种语言可以被编译为在JVM中执行的支持。
Table 22.1. Language plugins
22.2. Incubating language plugins 孵化中的语言插件
Table 22.2. Language plugins
Plugin Id | Automatically applies | Works with | Description |
- | - | Adds native assembly language capabilities to a project. | |
c | - | - | Adds C source compilation capabilities to a project. |
- | - | Adds C++ source compilation capabilities to a project. | |
objective-c | - | - | Adds Objective-C source compilation capabilities to a project. |
- | - | Adds Objective-C++ source compilation capabilities to a project. | |
windows-resources | - | - | Adds support for including Windows resources in native binaries. |
这些插件提供一些集成各种运行技术。
Table 22.3. Integration plugins
22.4. Incubating integration plugins 孵化中的集成插件
这些插件提供一些集成各种运行技术。
Table 22.4. Incubating integration plugins
Plugin Id | Automatically applies | Works with | Description |
distribution | - | - | Adds support for building ZIP and TAR distributions. |
java , distribution | - | Adds support for building ZIP and TAR distributions for a Java library. | |
ivy-publish | - | java , war | This plugin provides a new DSL to support publishing artifacts to Ivy repositories, which improves on the existing DSL. |
- | java , war | This plugin provides a new DSL to support publishing artifacts to Maven repositories, which improves on the existing DSL. |
Table 22.5. Software development plugins
22.6. Incubating software development plugins 孵化中的软件开发插件
Table 22.6. Software development plugins
Plugin Id | Automatically applies | Works with | Description |
reporting-base | - | Generates build dashboard report. | |
build-init | wrapper | - | Adds support for initializing a new Gradle build. Handles converting a Maven build to a Gradle build. |
- | - | Adds support for running CUnit tests. | |
reporting-base | java | Provides integration with the | |
- | java-base, java, jacoco | Provides integration with the | |
visual-studio | - | native language plugins | Adds integration with Visual Studio. |
- | - | Adds a | |
java | Assists with development of Gradle plugins by providing standard plugin build configuration and validation. |
这些插件形成基本构建块,用来提供给其他插件组装。它们可以被使用在你的构建文件,并列出的完整性。然而,要注意他们还没有考虑 Gradle 的公共API的一部分。因此,这些插件都不能列在用户指南文件中。你可以参考他们的API文档来了解他们。
Table 22.7. Base plugins
22.8. Third party plugins 第三方插件
可以从看到外部的插件